<?php

// No direct access
 
defined('_JEXEC') or die('Restricted access'); ?>
<div id="subHeader">
	<div class="login">
		<img alt="Sartu" src="<?php echo JURI::root();?>templates/lingolangtemplate/images/kandadoa.jpg">
		<div><a class="morea" href="index.php?option=com_user&view=login">Sartu zure kontuan</a></div>
	</div>
</div>
<div id="left">
	<div id="menu">
		<ul>
		<?php
			$color = 0;
			$text_color = "gorria";
			foreach($this->langs as $lang){
				if ($color == 0) {
					$text_color = "gorria";
					$color++;
				}else if($color == 1){
					$text_color = "morea";
					$color++;
				}else if ($color == 2) {
					$text_color = "laranja";
					$color++;
				}else if ($color == 3) {
					$text_color = "urdina";
					$color++;
				}else if ($color == 4) {
					$text_color = "berdea";
					$color = 0;
				}
				if($this->c_lang == 'eu-ES'){
					print("<li ><a class='$text_color' href='index.php?option=com_hizkuntzak&task=mainMenu&hlang=$lang->iso_code'>$lang->name_eu</a></li><br/>");
				}else
					print("<li ><a class='$text_color' href='index.php?option=com_hizkuntzak&task=mainMenu&hlang=$lang->iso_code'>$lang->name_es</a></li><br/>");
			};
		?>
		</ul>
		<?php
		if($this->show){
			?>
			<hr/>
			<br/>
			<center>
				<a href="index.php?option=com_hizkuntzak&task=adminHizkuntzak" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button">
				<span class="ui-button-text"><?php echo $this->rsc->admin_title; ?></span></a>
			</center>
		<?php }?>
	</div>
</div>
<div id="content" style="margin-top: -50px;">
	<div id="mc">
		<div class="mcircle down">
			<img src="<?php echo $this->imgs[0]; ?>" />
		</div>
		<div class="marcdown">
			<img src="<?php echo JURI::root();?>templates/lingolangtemplate/images/marko-borobila.png">
		</div>
	</div>
	<div id="mc">
		<div class="mcircle up">
			<img src="<?php echo $this->imgs[1]; ?>" />
		</div>
		<div class="marcup">
			<img src="<?php echo JURI::root();?>templates/lingolangtemplate/images/marko-borobila.png">
		</div>
	</div>
	<div id="mc">
		<div class="mcircle down">
			<img src="<?php echo $this->imgs[2]; ?>" />
		</div>
		<div class="marcdown">
			<img src="<?php echo JURI::root();?>templates/lingolangtemplate/images/marko-borobila.png">
		</div>
	</div>
</div>